package com.feeling.oafeeling.service.impl;

import com.feeling.oafeeling.mapper.MyTaskMapper;
import com.feeling.oafeeling.pojo.CheckApprovalRecord;
import com.feeling.oafeeling.pojo.TaskList;
import com.feeling.oafeeling.service.MyTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 */
@Service
public class MyTaskServiceImpl implements MyTaskService {

    @Autowired
    private MyTaskMapper myTaskMapper;

    @Override
    public List<CheckApprovalRecord> getMyTaskList(CheckApprovalRecord approvalRecord) {

        return myTaskMapper.getTaskList(approvalRecord);
    }

    @Override
    public List<CheckApprovalRecord> getTaskTypeList(CheckApprovalRecord approvalRecord) {
        return myTaskMapper.getTaskTypeList(approvalRecord);
    }

    @Override
    public List<TaskList> getTaskStepList(CheckApprovalRecord approvalRecord) {
        return myTaskMapper.getTaskStepList(approvalRecord);
    }
}
